package cn.chenhongchao.zhaobiaopingtai.controller;

import cn.chenhongchao.zhaobiaopingtai.common.api.CommonPage;
import cn.chenhongchao.zhaobiaopingtai.common.api.CommonResult;
import cn.chenhongchao.zhaobiaopingtai.service.ITenderService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@RestController
@RequestMapping("tenderFileRelease")
@Api(value = "发出的招标文件", tags = "发出的招标文件")
@CrossOrigin
public class TenderFileReleaseController {

    @Resource
    private ITenderService tenderService;


    @RequestMapping(value = "getTenderFileRelease",method = RequestMethod.POST)
    public CommonResult getTenderFileRelease(Integer pageNum, Integer pageSize,
                                             @RequestParam("commCode") String commCode,
                                       @RequestParam("tenderName") String tenderName,
                                             @RequestParam("tenderNumber") String tenderNumber,
                                             @RequestParam("tenderType") String tenderType) {


        return  CommonResult.success(CommonPage.restPage(tenderService.getListzhaobiao3(pageNum, pageSize,tenderNumber, tenderName)));
    }
}
